<html>

<head>

<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.js"></script>

<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">

</head>

<body>

<div class="container">

<h2>Please Confirm</h2>

<p>

Do you authorize "${authorizationRequest.clientId}" at "${authorizationRequest.redirectUri}" to access your

protected resources

with scope ${authorizationRequest.scope?join(", ")}.

</p>

<form id="confirmationForm" name="confirmationForm"

action="../oauth/authorize" method="post">

<#list authorizationRequest.scope as scop>

<input type="hidden" name="scope.${scop}" value="true"/>

</#list>

<input name="user_oauth_approval" value="true" type="hidden"/>

<input type="hidden" id="csrf_token" name="${_csrf.parameterName}" value="${_csrf.token}"/>

<button class="btn btn-primary" type="submit">Approve</button>

</form>

<form id="denyForm" name="confirmationForm"

action="../oauth/authorize" method="post">

<input name="user_oauth_approval" value="false" type="hidden"/>

<input type="hidden" id="csrf_token" name="${_csrf.parameterName}" value="${_csrf.token}"/>

<button class="btn btn-primary" type="submit">Deny</button>

</form>

</div>

</body>

</html>